import Layout from '@/layout/index.vue'

const departmentRouter = [
  {
    path: '/department',
    component: Layout,
    redirect: '/department/index',
    name: 'department',
    meta: {
      title: '部门管理',
      icon: 'dept-svg',
      roles: ['department'],
    },
    children: [
      {
        path: '/department/list',
        component: () => import('@/views/depatment/index.vue'),
        name: 'departmentList',
        meta: { title: '部门列表', icon: 'OfficeBuilding' },
        roles: ['department'],
      },
      {
        path: '/department/team',
        component: () => import('@/views/depatment/team.vue'),
        name: '',
        meta: { title: '团队列表', icon: 'Operation' },
        roles: ['department'],
      },
    ],
  },
]

export default departmentRouter
